package ooday02;

public class AnimalTest {
    public static void main(String[] args) {
        Dog dog=new Dog("小黑",3,"黑");
        dog.eat();//Dog类重写之后的
        dog.drink();//复用Animal类的
        dog.lookHome();//Dog类所特有的

        Chick chick=new Chick("小白",1,"白");
        chick.eat();//Chick类重写之后的
        chick.layEgg();//Chick类所特有的


        Fish fish=new Fish("小金",1,"金");
        fish.eat();//Fish类重写之后的
        fish.drink();//复用Animal类的
    }
}
